Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aiken: v1.1.10 #1816

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

aiken: v1.1.10 #1816

wants to merge 1 commit into from

Conversation

locallycompact
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Feb 3, 2025

Transaction cost differences

Script summary

Name Size (Bytes)
νInitial +92
νCommit +12
νHead -
μHead -
νDeposit +31

Init transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
5 - - - -
10 - - - -
40 - - - -

Commit transaction costs

UTxO Tx size % max Mem % max CPU Min fee ₳
1 - $${\color{green}-0.26}$$ $${\color{green}-0.07}$$ -
2 - $${\color{green}-0.35}$$ $${\color{green}-0.09}$$ -
3 - $${\color{green}-0.44}$$ $${\color{green}-0.12}$$ -
5 - $${\color{green}-0.64}$$ $${\color{green}-0.16}$$ -
10 - $${\color{green}-1.25}$$ $${\color{green}-0.30}$$ $${\color{green}-0.02}$$

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 - - $${\color{green}-0.06}$$ $${\color{green}-0.02}$$ -
2 - - $${\color{green}-1.22}$$ $${\color{green}-0.30}$$ $${\color{green}-0.01}$$
3 - - +1.03 +0.24 +0.01
4 - - +5.53 +1.31 +0.05
5 - - $${\color{green}-0.33}$$ $${\color{green}-0.11}$$ -
6 - - - $${\color{green}-0.04}$$ -
7 - - +5.7 +1.31 +0.06
8 - - $${\color{green}-0.89}$$ $${\color{green}-0.28}$$ $${\color{green}-0.01}$$

Cost of Increment Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 +31 $${\color{green}-0.04}$$ $${\color{green}-0.01}$$ -
2 +31 +0.35 +0.09 -
3 +31 $${\color{green}-0.03}$$ $${\color{green}-0.01}$$ -
5 +31 $${\color{green}-0.26}$$ $${\color{green}-0.06}$$ -
10 +31 $${\color{green}-0.42}$$ $${\color{green}-0.10}$$ -
37 +31 +0.95 +0.23 +0.01

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - $${\color{green}-0.28}$$ $${\color{green}-0.06}$$ $${\color{green}-0.01}$$
3 - +0.04 +0.02 -
5 - - - -
10 - +0.08 +0.02 -
40 - +0.26 +0.07 -

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
5 - - - -
10 - - - -
34 - +0.21 +0.05 -

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
5 - $${\color{green}-0.04}$$ $${\color{green}-0.01}$$ -
10 - $${\color{green}-0.04}$$ $${\color{green}-0.01}$$ -
27 - $${\color{green}-0.21}$$ $${\color{green}-0.05}$$ -

FanOut transaction costs

UTxO, Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
(0, 10) - - - - -
(1, 10) - - - - -
(5, 10) - - - - -
(10, 10) - - - - -
(20, 10) - - - - -
(37, 10) - - - - -

Copy link

github-actions bot commented Feb 3, 2025

Transaction costs

Sizes and execution budgets for Hydra protocol transactions. Note that unlisted parameters are currently using arbitrary values and results are not fully deterministic and comparable to previous runs.

Metadata
Generated at 2025-02-04 11:31:10.485390482 UTC
Max. memory units 14000000
Max. CPU units 10000000000
Max. tx size (kB) 16384

Script summary

Name Hash Size (Bytes)
νInitial 947e171f3dbdd1b573103281d0717e5f4817ae7308b0d06341db1745 2744
νCommit 25e8580f4477638f11612e62a211e7be6f9c0e66be5a45721f7a49f8 697
νHead 0e35115a2c7c13c68ecd8d74e4987c04d4539e337643be20bb3274bd 14756
μHead 9955c16cb1a9c35b8cd2bd4e613058af8d3e6a713e76d90f9a4f8485* 5541
νDeposit b857e599bcf377b77eade9f002b4b5a921812ac63e14b56e2e217e43 1133
  • The minting policy hash is only usable for comparison. As the script is parameterized, the actual script is unique per head.

Init transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 6093 11.11 3.46 0.53
2 6294 13.35 4.15 0.56
3 6500 15.50 4.80 0.60
5 6897 20.38 6.31 0.66
10 7908 31.18 9.61 0.82
40 13933 98.27 30.17 1.77

Commit transaction costs

This uses ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 558 2.18 1.09 0.20
2 742 3.03 1.64 0.22
3 920 3.92 2.21 0.24
5 1274 5.77 3.44 0.28
10 2182 10.88 6.95 0.38
59 10946 97.81 75.44 1.97

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 525 26.39 7.56 0.44
2 114 636 34.71 9.93 0.53
3 170 751 41.85 12.03 0.61
4 226 858 56.38 15.91 0.76
5 283 969 62.13 17.63 0.82
6 339 1081 67.38 19.32 0.88
7 393 1196 85.70 24.05 1.07
8 448 1303 98.16 27.49 1.20

Cost of Increment Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 1845 25.08 8.24 0.49
2 1978 26.60 9.38 0.52
3 2099 28.26 10.55 0.55
5 2412 33.10 13.41 0.62
10 3178 43.13 19.99 0.78
39 7488 99.76 57.56 1.70

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 614 23.99 7.61 0.43
2 743 24.77 8.47 0.44
3 873 26.53 9.62 0.47
5 1199 31.68 12.39 0.55
10 2112 43.25 18.90 0.73
39 6225 97.43 53.15 1.59

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 601 30.25 9.37 0.49
2 835 31.02 10.45 0.51
3 1056 34.22 12.28 0.56
5 1265 40.10 15.30 0.64
10 1870 45.36 20.16 0.74
35 5841 99.29 54.68 1.60

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 675 35.95 11.00 0.55
2 811 38.19 12.33 0.58
3 993 41.02 13.94 0.63
5 1246 45.25 16.54 0.69
10 2115 58.26 24.09 0.89
26 4613 97.30 47.16 1.48

Abort transaction costs

There is some variation due to the random mixture of initial and already committed outputs.

Parties Tx size % max Mem % max CPU Min fee ₳
1 6005 28.15 9.29 0.71
2 6099 37.22 12.28 0.81
3 6271 47.43 15.70 0.92
4 6435 57.02 18.86 1.03
5 6577 67.32 22.25 1.14
6 6586 69.32 22.89 1.17
7 6808 82.40 27.19 1.31
8 6822 88.76 29.25 1.38
9 6963 97.57 32.20 1.48

FanOut transaction costs

Involves spending head output and burning head tokens. Uses ada-only UTXO for better comparability.

Parties UTxO UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
10 1 57 6125 21.33 7.13 0.64
10 5 285 6261 30.77 10.75 0.75
10 20 1140 6772 62.91 23.21 1.12
10 30 1710 7113 83.30 31.16 1.36
10 37 2109 7352 98.48 37.03 1.54

End-to-end benchmark results

This page is intended to collect the latest end-to-end benchmark results produced by Hydra's continuous integration (CI) system from the latest master code.

Please note that these results are approximate as they are currently produced from limited cloud VMs and not controlled hardware. Rather than focusing on the absolute results, the emphasis should be on relative results, such as how the timings for a scenario evolve as the code changes.

Generated at 2025-02-04 11:34:45.652175671 UTC

Baseline Scenario

Number of nodes 1
Number of txs 300
Avg. Confirmation Time (ms) 4.110375313
P99 9.10004510999998ms
P95 5.082062550000001ms
P50 3.940367ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 900
Avg. Confirmation Time (ms) 24.135318964
P99 120.29005715999999ms
P95 31.116913149999984ms
P50 20.464614500000003ms
Number of Invalid txs 0

Copy link

github-actions bot commented Feb 3, 2025

Test Results

  5 files  ±0  165 suites  ±0   31m 11s ⏱️ -2s
563 tests ±0  561 ✅ ±0  2 💤 ±0  0 ❌ ±0 
565 runs  ±0  563 ✅ ±0  2 💤 ±0  0 ❌ ±0 

Results for commit ca96e06. ± Comparison against base commit a22b272.

♻️ This comment has been updated with latest results.

@noonio
Copy link
Contributor

noonio commented Feb 4, 2025

Given that nothing else has changed and the script sizes have gone up, I'm inclined to not merge this version.

We may as well wait for another release and see if we must upgrade (i.e. it's not like this upgrade is an incremental improvement).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Blocked ✋
Development

Successfully merging this pull request may close these issues.

2 participants